package com.his.dictitem.dao;

import com.his.dictitem.entity.DictItemCharge;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DictItemChargeMapper {
    int deleteByPrimaryKey(String id);
    int insert(DictItemCharge record);
    int insertSelective(DictItemCharge record);
    DictItemCharge selectByPrimaryKey(String id);
    int updateByPrimaryKeySelective(DictItemCharge record);
    int updateByPrimaryKey(DictItemCharge record);
    //==========================自定义功能==============================

    /**
     * 通过itemID查询项目的价格列表
     */
    List<DictItemCharge> selectByItemID(String itemid);

    /**
     *失效当前生效的价格
     */
    int updateForInvalidCharge(DictItemCharge record);
}